package com.ldzg.blockwatcher.config.eth;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import static com.ldzg.blockwatcher.config.eth.EthProperties.CONFIG_PREFIX;

/**
 * @author zhangyinhang
 */
@Data
@Configuration
@ConfigurationProperties(prefix = CONFIG_PREFIX)
public class EthProperties {

    public static final String CONFIG_PREFIX = "config.eth";
    /**
     * 以太坊服务的 URL
     */
    private String ethUrl;

    /**
     *  监听智能合约地址
     */
    private String concatAddress;

    /**
     *  请求的apiKey
     */
    private String apiKey;
}
